<%@page import="java.math.BigDecimal"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.Collection"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	// 	request.setAttribute("byWhat", "ALL");
// 	if (request.getParameter("byWhat").equalsIgnoreCase("byEMPNOS")) {
// 		request.setAttribute("byWhat", "byEMPNOS");
// 		Collection c = new ArrayList();
// 		if (request.getParameter("count") != null) {
// 			int count = Integer.parseInt(request.getParameter("count")), i = 0;
// 			while (i < count) {
// 				if (request.getParameter("emp" + ++i) != null) {
// 					c.add(new BigDecimal(request
// 							.getParameter("emp" + i)));
// 				}
// 			}
// 		}
// 		request.setAttribute("empnos", c);
// 	}
	if (request.getParameter("byWhat").equalsIgnoreCase("byDEPTNOS")) {
		request.setAttribute("byWhat", "byDEPTNOS");
		Collection c = new ArrayList();
		if (request.getParameter("count") != null) {
			int count = Integer.parseInt(request.getParameter("count")), i = 0;
			while (i < count) {
				if (request.getParameter("dept" + ++i) != null) {
					c.add(new BigDecimal(request.getParameter("dept"
							+ i)));
				}
			}
		}
		request.setAttribute("deptnos", c);
	}
	RequestDispatcher dispatcher = request
			.getRequestDispatcher("/ExportServlet.jsp");
	if (dispatcher != null) {
		dispatcher.forward(request, response);
	}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Export Link</title>
</head>
<body>

</body>
</html>